home *** CD-ROM | disk | FTP | other *** search
- function SetValue(val)
- {
- this.Value = Math.floor(Math.max(0,Math.min(5,val)));
- Update();
- }
- function Update()
- {
- var _loc2_ = 1;
- while(_loc2_ < 6)
- {
- var _loc4_ = "dimond" + _loc2_;
- var _loc3_ = Value >= _loc2_;
- this[_loc4_]._alpha = !_loc3_ ? 50 : 100;
- _loc2_ = _loc2_ + 1;
- }
- }
- var Value;
- if(Value == undefined)
- {
- Value = 0;
- }
- SetValue(Value);
-